package com.dang.alex.service.imp;

import java.util.List;

import com.dang.alex.dao.DAOFactory;
import com.dang.alex.model.ReceiveAddress;
import com.dang.alex.service.ReceiveAddressService;

public class ReceiveAddressServiceImp implements ReceiveAddressService{
	@Override
	public List<ReceiveAddress> findByUserId(int id) throws Exception {
		return DAOFactory.getReceiveAddressDAO().findByUserId(id);
	}
	@Override
	public void save(ReceiveAddress addr) throws Exception {
		DAOFactory.getReceiveAddressDAO().save(addr);
	}
	@Override
	public ReceiveAddress findById(int id) throws Exception {
		// TODO Auto-generated method stub
		return DAOFactory.getReceiveAddressDAO().findById(id);
	}
}
